package com.xsj.pojo;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Card {
  private Integer userId;
  private Integer cardId;
  private String cardName;
  private double cardPrice;
  private long cardNum;
  private Integer merId;
  private Double condition;
  private Integer expireTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date endTime;
  private boolean claimedByUser;
  private String icon;
  private String merName;
  private ShopCart shopCart;

  public Integer getCardId() {
    return cardId;
  }
}
